package com.wushi.lenovo.asia5b.app_ui.other.dialog.trans;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.wushi.lenovo.asia5b.R;
import com.wushi.lenovo.asia5b.app_model.other.TransItemBean;

import java.util.List;

/**
 * Created by zhangyuncai on 2019/5/24.
 */
public class TransAdapter extends BaseQuickAdapter<TransItemBean, BaseViewHolder> {

    public TransAdapter(@Nullable List<TransItemBean> data) {
        super(R.layout.item_transferdialog_adapter, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, TransItemBean item) {
        helper.setText(R.id.tv_trans_left, item.getLeft());
        helper.setText(R.id.tv_trans_right, item.getRight());
    }
}
